﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Welcome.aspx.cs" Inherits="Questionary.Views.Welcome" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<%--<meta http-equiv="refresh" content="5;url=/" >--%>
    <title></title>
    <style type="text/css">
        #welcome{
                border: solid 1px #ccc;
    border-radius: 5px;
    padding: 10px;
    width: 400px;
    margin: 15px auto;
    text-align: center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:Button runat="server" ID="btnSave" OnClick="btnSave_Click" Text="Load" />
    </form>
    <div id="welcome">
        谢谢参与!
        <br />
        <br />
        <div><span id="time">5</span>秒后将返回首页...<a href="/" target="_self">马上返回</a></div>
    </div>
   </body>
    <script type="text/javascript">
        function countTime() {
            var elem = document.getElementById("time");
            var counter = parseInt(elem.innerHTML) - 1;
            if (counter > 0) {
                elem.innerHTML = counter;
                setTimeout("countTime()", 1000);
            }
        }

        setTimeout("countTime()", 1000);
    </script>
</html>
